import React, { Component } from 'react'
import NavBar from './NavBar-two/index'
export class App extends Component {
  render() {
    const leftSlot=<button>按钮</button>
    const centerSlot=<h2>我是标题</h2>
    const rightSlot=<i>斜体文本</i>
    return (
      <div>
        <NavBar leftSlot={leftSlot} centerSlot={centerSlot} rightSlot={rightSlot}>
        </NavBar>
      </div>
    )
  }
}
export default App
